import request from '@/utils/request'

const product = {
  getProductListAPI: function (params) {
    return request({
      url: '/eims/product/list',
      method: 'post',
      data: params
    })
  },
  addProductAPI: function (params) {
    return request({
      url: '/eims/product/add',
      method: 'post',
      data: params
    })
  },
  updateProductAPI: function (params) {
    return request({
      url: '/eims/product/update/' + params.id,
      method: 'put',
      data: params
    })
  },
  deleteProductAPI: function (id) {
    return request({
      url: '/eims/product/delete/' + id,
      method: 'delete',
      data: {}
    })
  }
}

export default product
